Learned how the Java Bridge does type coercion and exception handling. 了解JavaBridge如何进行类型强制转换和异常处理。
Reading a parameter value can be marginally expensive ( because of type coercion). Therefore, it makes sense to cache the parameter value, at least while the component is actively rendering itself. 读取一个参数值会耗费不少资源(因为类型的强制转换)。因此,缓存参数值是有意义的,至少当组件正在呈现自己时。
Possible changes will include improvements in type coercion and new methods such as java_send ( GitHub commit for java_send) which takes the method signature of the method to invoke. 还有其他一些可能的变化,如类型强制的增强,新的方法javasend(GitHub提交了该方法),它会接受被调用方法的方法签名。
It is statically type-checked and does not allow type coercion, so is safe with regards to types. 它进行静态类型检查,并且不允许强制类型转换,因而对于类型而言是安全的。
Thus, Construction and Lexicon Coercion Mechanism is proposed in which the third type of coercion, namely, accommodation coercion is included. 因此,作者提出构式与词汇压制机制。该机制除了涵盖词汇压制和构式压制,还涵盖第三种压制类型,即协同压制。
The other type of coercion is lexicon coercion. It refers to the case that word meaning coerces construction meaning when they are in semantic conflict. 另一种是词汇压制,指词汇与构式语义冲突时词汇意义压制构式意义。